package com.zzty.txj1.dao;

import com.zzty.txj1.entity.RestaurantPoint;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface RestaurantPointDao {
    @Select("select * from restaurantpoint where id=#{id}")
    RestaurantPoint getRestaurantPointById(RestaurantPoint restaurantPoint);

    @Insert("insert into restaurantpoint (name,X,Y) values(#{name},#{X},#{Y})")
    Integer addRestaurantpoint(RestaurantPoint restaurantPoint);

    @Select("select * from restaurantpoint")
    List<RestaurantPoint> getAllRestaurantpoint();
}
